import request from '@/utils/request'

// 查询项目划款列表
export function listDealSecuritiesPayment(query) {
  return request({
    url: '/payment/dealSecuritiesPayment/list',
    method: 'get',
    params: query
  })
}

// 查询项目划款详细
export function getDealSecuritiesPayment(id) {
  return request({
    url: '/payment/dealSecuritiesPayment/' + id,
    method: 'get'
  })
}

// 保存项目划款
export function saveDealSecuritiesPayment(data) {
  return request({
    url: '/payment/dealSecuritiesPayment/save',
    method: 'post',
    data: data
  })
}

// 删除项目划款
export function delDealSecuritiesPayment(id) {
  return request({
    url: '/payment/dealSecuritiesPayment/' + id,
    method: 'delete'
  })
}

// 删除付款主体
export function delDealSecuritiesPaymentPayer(id) {
  return request({
    url: '/payment/dealSecuritiesPaymentPayer/' + id,
    method: 'delete'
  })
}
